<?php
class TestController extends Controller 
{
	function show()
	{
		header('location: /user-book/id/5.html'); die;
		
		echo Core::outputFilter('	<div class="right">
			<a href="./?a=user-editbook&id=1">编辑</a>
			<a href="./?a=user-delbook&id=1">删除</a>
			</div>
		');
		
		/**
		$rows = Db::get('Book')
						->select('t0.book_id,t0.title, t1.name as username')
						->join('User')->on('t0.user_id=t1.user_id')
						->getAll();
		Debug::pre($rows);
		*/
		
		//Debug::pre($_SERVER);
		
		//Log::error('do my test');
		//Log::flush();
		
		echo '<a href="', url(array(
			'c'		=>	'book',
			'a'		=>	'reader',
			'id'	=>	1,
			//'page'	=>	50,
			)), '">', url(array(
			'c'		=>	'book',
			'a'		=>	'reader',
			'id'	=>	1,
			//'page'	=>	50,
			)) ,'</a> <br/>';
			
			
		echo '<a href="',url('book-reader/id/1'),'">', url('book-reader/id/1') ,'</a>';
		
	}
}
?>